<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>KISSY.Overlay Test Runner</title>
<link rel="stylesheet" href="../../../tools/jasmine/jasmine.css">
<script src="../../../tools/jasmine/jasmine.js"></script>
<script src="../../../tools/jasmine/jasmine-html.js"></script>
<script src="../../../tools/jasmine/event-simulate.js"></script>
<link href="../assets/cool.css" rel="stylesheet"/>
<script src="../../../build/kissy.js"></script>
<style>
    html, body {
        margin: 0;
        padding: 0;
        border: 0;
    }

    .popup {
        border: 1px solid red;
    }
</style>
</head>
<body>

<div id="render" class='popup'>
    prerender
</div>


<div id="drender">
    <div class="ks-stdmod-header">prerender header</div>
    <div class="ks-stdmod-body">prerender body</div>
    <div class="ks-stdmod-footer">prerender footer</div>
</div>

<h1>KISSY.Overlay Test Cases</h1>
<script src="overlay-spec.js"></script>
<script>
    KISSY.use("overlay,resizable,dd", function() {
        jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
        jasmine.getEnv().execute(function() {
            if (parent && parent.jasmine.kissyNext) {
                parent.jasmine.kissyNext(this.results().failedCount);
            }
        });
    });
</script>

</body>
</html>